from todo_api_protect.base.mybase import Tools


class create_model(Tools):
    # 定义路径
    path = '/task/info'

    # 发送注册请求
    def create_action(self, title, hd):
        mydata = {'title': title}
        res = self.meeting.post(url=self.hosturl+self.path, data=mydata, headers=hd)
        return res.json()
